package com.GGG.cloud.house.index.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 不同模块之间的链接配置
 *
 * @author GGG
 * @version 1.0
 * @date
 */
@Configuration
public class RestConfig {

    @Bean
    @LoadBalanced //开启负载均衡
    public RestTemplate creatTemplate(){ return new RestTemplate();}
}
